#pragma once
#include "FAMysql/ArchiveVector.h"
#include "ctpImpl/marketDataArchive.h"

class CMSConnect;


class CFAMysql:public IMysql
{
public:
	explicit CFAMysql(IMysqlHandle *pHandel);

	virtual void Storge(tagMarketData*pData);

	virtual void Start();
	virtual void Stop(){}
private:
	CMSConnect * m_pConnect;
	IMysqlHandle * m_pMysqlHandle;
};

extern "C"
{
	MYSQL_API IMysql* CreateObject(IMysqlHandle*pHandle);
	MYSQL_API void ReleaseObject();
}

extern CFAMysql * gFAMysql;